]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Hide notification close button immediately on click
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 25 Oct 2012 20:07:12 +0000 (22:07 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 25 Oct 2012 20:41:32 +0000 (22:41 +0200)
Having the close button move away from under the pointer after
clicking it is confusing and distracts from the main transition,
which is hiding the notification. Just hide it immediately.

https://bugzilla.gnome.org/show_bug.cgi?id=682237

js/ui/messageTray.js

index 93ec828f40e02f7ad69ffd1b0f2f9e579b3edb23..89cbf94d0b00534a1adf9d55e8e13a3f86d660d9 100644 (file)
@@ -1591,6 +1591,7 @@ const MessageTray = new Lang.Class({
 
     _onCloseClicked: function() {
         if (this._notificationState == State.SHOWN) {
+            this._closeButton.hide();
             this._notificationClosed = true;
             this._updateState();
             this._notificationClosed = false;